package borders;

import squares.Square;
/**
 *  * a open class is a special case of border, which specifies that the border is open en doesn't contain
 *  Obstacles. 
 * @Invar each Border can have his first attached square as an attached square. (inherited from the class parent)
 * 			| Border.isValidAttachedSquare(Border.getAttachedSquare1())
 * @Invar each Border can have his second attached square as an attached square. (inherited from the class parent)
 * 			| Border.isValidAttachedSquare(Border.getAttachedSquare2())
 * @version 1.0
 * @author Gilles Groven & Jochen Tombal
 *
 */
public class Open extends Border {
	/**
	 * initializes this open border with the given square as attached square
	 * @param square1
	 * 		the square to which this open border is attached to
	 * @effect initializes this open as a border with the given square as attached square
	 * 		| super(square1)
	 */
	public Open(Square square1)
	{
		super(square1);
		
	}
	/**
	 * initializes this open border with the given squares as attached squares
	 * @param square1
	 * 		the first square to which this open border is attached to
	 * @param square2
	 * 		the second square to which this open border is attached to
	 * @effect initializes this open as a border with the given squares as attached squares
	 * 		| super(square1,square2)
	 */
	public Open(Square square1,Square square2)
	{
		super(square1,square2);
	}
}
